﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DynamicProxy.Core.AutoProxy
{
    /// <summary>
    /// Type和Type代理类的封装
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ProxyType<T> where T : IInterceptor, new()
    {
        public Type Type { get; set; }
        public Type Proxy { get; set; }

        public ProxyType(Type type)
        {
            this.Type = type;
            this.Proxy = ProxyBuilder<T>.BuildProxy(type);
        }
    }

}
